package service;

import dao.VegetableSelectDao;
import entity.Vegetable;
import util.DBMannager;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public class findService {
    public static void main(String[] args) throws SQLException {
        Connection connection = DBMannager.getConnection();
        VegetableSelectDao vegetableSelectDao = new VegetableSelectDao();
        List<Vegetable> vegetableList = vegetableSelectDao.findAll();
        System.out.println(vegetableList);
    }
}
